import axios from '@/http/axios';

// 权限组列表接口
export const permissiongrouplist = (data) => {
  return axios({
    url: '/admin/service/permission_group_list',
    method: 'post',
    data
  });
};

//权限组新增接口
export const permissiongroupadd = (data) => {
  return axios({
    url: '/admin/service/permission_group_add',
    method: 'post',
    data
  });
};

//权限组修改接口
export const permissiongroupedit = (data) => {
  return axios({
    url: '/admin/service/permission_group_edit',
    method: 'post',
    data
  });
};

//权限组删除接口
export const permissiongroupdel = (data) => {
  return axios({
    url: '/admin/service/permission_group_del',
    method: 'post',
    data
  });
};

//权限组查询选了/未选学生列表接口
export const groupuserlist = (data) => {
  return axios({
    url: '/admin/service/group_user_list',
    method: 'post',
    data
  });
};

//查看权限组下发详情接口
export const groupsyncinfo = (data) => {
  return axios({
    url: '/admin/service/group_sync_info',
    method: 'post',
    data
  });
};

//删除已经选择的人员
export const groupusersdel = (data) => {
  return axios({
    url: '/admin/service/group_users_del',
    method: 'post',
    data
  });
};

//校区列表
export const sysdevicesselect = (data) => {
  return axios({
    url: '/admin/service/sys_devices_select',
    method: 'post',
    data
  });
};

//首页统计接口
export const firstpagestatistics = (data) => {
  return axios({
    url: '/admin/service/student_warn_count',
    method: 'post',
    data
  });
};

//规则配置接口
export const ruleconfig = (data) => {
  return axios({
    url: '/admin/service/student_warn_config',
    method: 'post',
    data
  });
};

//异常人员
export const abnormalpersoncount = (data) => {
  return axios({
    url: '/admin/service/student_warn_info',
    method: 'post',
    data
  });
};


//查询规则
export const rulequery = (data) => {
  return axios({
    url: '/admin/service/student_warn_find',
    method: 'post',
    data
  });
};


//异常记录预警列表
export const warnlist = (data) => {
  return axios({
    url: '/admin/service/student_warn_list',
    method: 'post',
    data
  });
};
